"""
任务队列实例
"""
# 非常简单的任务队列使用pickle，原始支持使用不同队列的优先级。
from __future__ import absolute_import, unicode_literals
from kombu import Exchange, Queue

#
task_exchange = Exchange('tasks', type='direct')
task_queues = [Queue('hipri', task_exchange, routing_key='hipri'),
               Queue('midpri', task_exchange, routing_key='midpri'),
               Queue('lopri', task_exchange, routing_key='lopri')]

